<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">




  
  
  
  

  
    
    
  

  

  

  
    
      
    

    
  

  
    
      
    

    
  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic|Lobster Two:300,300italic,400,400italic,700,700italic|Roboto Mono:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="杂谈,">










<meta name="description" content="前言先介绍下背景…我是长江大学软件工程专业2016级应届毕业生(双非院校)，由于某些原因错过了秋招，春招成为了全面线上面试的第一批体验者hh，最终拿到了shopee后端开发工程师的sp offer。">
<meta name="keywords" content="杂谈">
<meta property="og:type" content="article">
<meta property="og:title" content="春招有感">
<meta property="og:url" content="https://yujunjiex.gitee.io/2020/03/25/春招有感/index.html">
<meta property="og:site_name" content="Yu&#39;s Home">
<meta property="og:description" content="前言先介绍下背景…我是长江大学软件工程专业2016级应届毕业生(双非院校)，由于某些原因错过了秋招，春招成为了全面线上面试的第一批体验者hh，最终拿到了shopee后端开发工程师的sp offer。">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2023-02-23T12:31:14.892Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="春招有感">
<meta name="twitter:description" content="前言先介绍下背景…我是长江大学软件工程专业2016级应届毕业生(双非院校)，由于某些原因错过了秋招，春招成为了全面线上面试的第一批体验者hh，最终拿到了shopee后端开发工程师的sp offer。">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Gemini',
    version: '5.1.4',
    sidebar: {"position":"left","display":"hide","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '9PFXHHRD2G',
      apiKey: '45293228d8a5cecc1c0826fb3d34a130',
      indexName: 'blog',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"没有找到任何结果: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://yujunjiex.gitee.io/2020/03/25/春招有感/">





  <title>春招有感 | Yu's Home</title>
  





  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?1746d8de4fb78edd21f9004d348fa6be";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




</head>

<body itemscope="" itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope="" itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Yu's Home</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <h1 class="site-subtitle" itemprop="description">管它真理无穷</h1>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于Yu
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br>
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <div class="popup search-popup local-search-popup">
  <div class="local-search-header clearfix">
    <span class="search-icon">
      <i class="fa fa-search"></i>
    </span>
    <span class="popup-btn-close">
      <i class="fa fa-times-circle"></i>
    </span>
    <div class="local-search-input-wrapper">
      <input autocomplete="off" placeholder="搜索..." spellcheck="false" type="text" id="local-search-input">
    </div>
  </div>
  <div id="local-search-result"></div>
</div>



    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://yujunjiex.gitee.io/2020/03/25/春招有感/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Yu">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/xiaomai.png">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Yu's Home">
    </span>

    
      <header class="post-header">

        
        
          <h2 class="post-title" itemprop="name headline">春招有感</h2>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2020-03-25T22:04:02+08:00">
                2020-03-25
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
              <span class="post-meta-divider">|</span>
              <span class="post-meta-item-icon">
              <i class="fa fa-comment-o"></i>
              </span>
              <a href="/2020/03/25/春招有感/#comments" itemprop="discussionUrl">
              <span class="post-comments-count valine-comment-count" data-xid="/2020/03/25/春招有感/" itemprop="commentCount"></span>
              </a>
              </span>
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  3,364
                </span>
              

              

              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h3 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h3><p>先介绍下背景…我是长江大学软件工程专业2016级应届毕业生(双非院校)，由于某些原因错过了秋招，春招成为了全面线上面试的第一批体验者hh，最终拿到了shopee后端开发工程师的sp offer。</p>
<a id="more"></a>

<p>我的春招准备时间很短，不像很多大佬是收割机，更像个铁头娃（只找后端是我最后的倔强）……整个春招一共就投递了十家，目前收到了四家笔试，两家面试，很幸运能直接拿到一开始的dream company的offer。很多同学会很好奇我的简历和校招准备过程，一开始的时候我对于校招相关的东西也了解的很少，一次偶然的机会在知乎看到一位腾讯WXG大佬的秋招经验分享，技术栈也很相似，所以就看着他的分享完善了简历和了解了很多校招相关知识，非常感谢！！</p>
<p>这里贴一下苏畅dalao的知乎主页（<a href="https://www.zhihu.com/people/su-chang-60-5/posts" target="_blank" rel="noopener">https://www.zhihu.com/people/su-chang-60-5/posts</a></p>
<p>对，这里我不打算写校招简历制作和流程相关的东西，如果你是纯技术路线，按照他的分享肯定没错，这里就不重复造轮子啦。我主要更想分享一下在本科阶段走过的路和一些想法，当然会先分享一下shopee的面经。</p>
<h3 id="面经"><a href="#面经" class="headerlink" title="面经"></a>面经</h3><p>具体的记得不是很清楚，记起来多少写多少把</p>
<h4 id="笔试略（主要考察基础和算法）"><a href="#笔试略（主要考察基础和算法）" class="headerlink" title="笔试略（主要考察基础和算法）"></a>笔试略（主要考察基础和算法）</h4><h4 id="一面（基础面）"><a href="#一面（基础面）" class="headerlink" title="一面（基础面）"></a>一面（基础面）</h4><p>自我介绍（表示自己更偏向py，限制语言题提问范围</p>
<p>Python数据类型及底层实现</p>
<p>介绍下Python元类</p>
<p>Python中垃圾回收机制</p>
<p>Python新式类和旧式类的区别</p>
<p>介绍下计算机网络四层模型和分别的作用（这里我会表示出是tcp/ip协议栈的四层划分</p>
<p>TCP/UDP相关（区别，三次握手四次挥手，tcp的可靠性保证，流量控制和拥塞控制等等</p>
<p>问当前面试用的视频流在传输层采用的什么协议？为什么？（这里我先介绍原因，并引出HTTP3.0</p>
<p>接上一个，用udp的话如何得知对方的ip地址（这里不是DNS..想了半天没懂意思</p>
<p>介绍下进程，线程，协程</p>
<p>进程和线程的区别</p>
<p>介绍linux中进程的五种状态</p>
<p>异步io（这里有两个说法，一个是操作系统层面的异步io模型，一个是上层的异步io比如asyncio，分别深入介绍即可</p>
<p>实现一个LRU算法</p>
<p>检测链表中是否有环</p>
<p>稳定性是什么，哪些排序算法是稳定的？（冒泡，插入，归并，基数排序</p>
<p>数据库的存储引擎有哪些，场景？</p>
<p>聚簇索引和非聚簇索引</p>
<p>sql考察（问了执行顺序，我还提了索引会出现的回表情况 </p>
<p>索引用的什么数据结构（B+/Hash，主要讲B+</p>
<p>为什么用B+树，B+树好在哪？</p>
<blockquote>
<p> 差不多就这些，一面35分钟，问题连贯且基础</p>
</blockquote>
<h4 id="二面（项目-场景面）"><a href="#二面（项目-场景面）" class="headerlink" title="二面（项目/场景面）"></a>二面（项目/场景面）</h4><p>自我介绍</p>
<p>竟然先问我C++….</p>
<p>介绍C++中的多态（我介绍完之后，又引申了其他语言的天生多态，把话锋转回来…</p>
<p>然后回到了Py…</p>
<p>python中的继承问题（可以提一下菱形继承的mro解决算法</p>
<p>谈谈组合和继承，适用场景</p>
<p>说说设计模式（记得不是很多，大概从创建型，行为型，结构型分别说了几个..</p>
<p>接下来就开始到最稳的项目面了，全程深入mysql的设计和场景问题，比如redis和mysql的一致性，服务器推的解决方案等等问题，全程面感很好，所以写在简历上的项目自己一定得非常清楚，多思考而不是只追求结果</p>
<p>谈谈职业规划</p>
<p>反问</p>
<blockquote>
<p>二面就整整30分钟，但面感很好，面试官竟然会把问题往软件工程素养上引</p>
</blockquote>
<h4 id="HR面略"><a href="#HR面略" class="headerlink" title="HR面略"></a>HR面略</h4><hr>
<p>线上流程从2月中到3月底，整体来说shopee的面试难度不是很高，同样侧重基础的考察，有的基础问题如果真的懂了可以说的简明扼要又不失深度（注意话术和面感），只有一面有两道基础算法题，运气比较好。。有的同学一上来就手撕代码，解不出来的话会影响整个过程…</p>
<p>过程中可以有不懂的，但是不要把自己往不懂的坑里带，对于某个不熟悉的问题你可以稍微介绍下自己了解的再说个类似的，千万不能蒙头卡住然后说句不会…</p>
<h3 id="春招有感"><a href="#春招有感" class="headerlink" title="春招有感"></a>春招有感</h3><p>春招我是从1月8号回家开始准备的，刚开始啥都不了解，看别人的面经觉得看起来懂，却说不出来…有缘看了苏畅dalao的流程才知道自己应该怎么做，一开始刷了一个月的剑指offer和完善整个算法和数据结构知识体系，这个过程是最有动力的，因为反馈很快，能多刷出一个题，多熟悉一个数据结构，并且能将其中的相同与不同细细品味，是最有成就感的一步，所以我也建议大家先从算法开始准备，并且算法和数据结构对于之后复习计网和操作系统很有帮助。这种感觉我举个例子：</p>
<blockquote>
<p>在你学习二叉树的时候，为什么会有完全二叉树，二叉查找树，平衡二叉查找树？红黑树又是什么？散列表的复杂度这么低为什么还需要红黑树？</p>
<p>在寻根究底后你会知道：</p>
<p>完全二叉树的特性可以让他用数组高效的存储，并且可以用它来实现一个堆解决topk等等问题；二叉查找树就是为了搜索而生，左节点小于这个节点，右节点大于这个节点，满足这种规则构建就能在O（height）的复杂度内快速找到目标节点，但问题就是这个height如果大了，那复杂度会骤增，所以需要平衡的二叉查找树去均摊左右子树，这也就衍生了红黑树这种平衡二叉查找树（虽然它不是严格意义上的平衡，但最高效）；都知道散列表通过哈希查找的时间复杂度为O（1），而红黑树这种平衡的二叉查找树时间复杂度为O（logn），那为什么有时候要选择红黑树呢？一方面是散列表遇到散列冲突和扩容缩容会导致时间复杂度骤增，而红黑树要稳定的多；另一方面我觉得是占用内存更少，散列表由于装载因子会导致散列冲突的原因会给比实际所需内存大得多的内存空间。</p>
</blockquote>
<p>这就是思考的重要性，可能你很久不用它有时候再看一眼就都能回想起来，并且能有效提高技术深度。</p>
<p>之后花了大概20天 计算机网络&gt;数据库&gt;操作系统 ，能在短时间内get到比较有深度的知识我觉得是平时的积累和思考的习惯，这一个多月相当于把之前零散的点串起来了，对于之前一些迷惑的点也明确了。</p>
<p>至于项目和语言基础方面，在校期间已经打的挺牢，也就没有花太多时间。</p>
<p>所以我的春招准备用一句话总结就是：<strong>回归技术本质，优化技能树</strong></p>
<h3 id="我在大学的日子"><a href="#我在大学的日子" class="headerlink" title="我在大学的日子"></a>我在大学的日子</h3><p>对于计算机的兴趣挺早就有，但玩心太重…一直没有认认真真的搞过。上大学之后刚开始在化学专业，大一下学期快结束转到了计科并分到了软工专业。我真正开始踏上编程之路应该算是从大二开始，大二上学期印象很深刻，之前学习的C语言一直就写一些控制流，dos窗口程序，让我觉得编程好无聊啊..要很熟悉这些语法才能写出看起来这么low的程序，于是兴趣消退在寝室里打起了王者荣耀，而大二上学期的课程主要学习了C++的面向对象编程，而正是因为这门课的课设让我起了转折，一是能做出来发现自己还是有一点编程天赋，二是遇到了我在本科阶段最重要的导师——刘老师。</p>
<p>刚开始去到刘老师办公室，让我学习的是QT客户端开发，emmm这是啥，也不知道难不难，先试试再说。刚开始拿着那本《Qt Creator快速入门》就啃起来，当时每一页都仔仔细细的看（现在看起来好蠢），生怕有漏了不懂的，刚开始一天就看10几页??而且那种GUI的书其实就是个工具书，很多描述晦涩的东西就是一个GUI控件的功能，当时不懂学习效率极慢，经常自闭，搞了一个多月也就会写几个控件的GUI代码，但我不好意思说呀，有时候就又回寝室打打游戏= =  而刘老师是个很自律的老师，看到我不来就问我，并且当时的学长学姐也都很努力，我竟然害待在寝室玩儿，经过了几次后我就被这种氛围感染了，并沉浸在了电脑面前，回过头来审视自己菜在哪儿，为啥别人能做出来那么好的项目我不行呢…第二个转折点就是通过魏志文学长了解到了GitHub，我开始在上面看别人做的项目，哇大家都好强啊，clone了一个简单的QT音乐播放器项目下来，我在想我也要照着写一个而且加上一些自己的功能，在真正投入这个项目编写的过程中我才发现之前学习的那些控件并不是每个api都要了解并熟悉（而是要了解相应的应用场景），并且设计都是相通的，能写出一个对话框，再写出一个悬浮窗也不难…渐渐的了解到自己原来的学习方法有多蠢，编码就开始轻车熟路，并且在一周多把那本书剩下的部分看完了，时间转瞬就到暑假了，又花了一个多月把那个项目完善，现在已经丢在Github仓库里好久没管了（其实是不可维护哈哈哈）</p>
<p>而后大三技术路线开始围绕Python展开，玩过数据分析，数据采集，数据挖掘，大三这一年是踩坑最多的一年（不是技术坑，同是理解坑），觉得项目写的多了，不管遇到什么bug都能找到并解决，就开始惯性思维的学习，而这恰恰又是另一个极端！这种想法会让你不想去沉淀于技术本质，觉得能解决问题的方法就是好方法，之后就用这同一个方法，写的久了回顾之前的项目全是烂代码（不是水平进步察觉出来了，是觉得项目大了就写不动了）。所以第一个想法就是软件工程，之后的代码越来越注重质量并重视团队协作，得到的感悟都是切身体会的，每个解决方案都要寻求一个平衡点而不是仅仅注重结果，顺带提升了技术认知。</p>
<p>最后接触的才是后端开发，并发现最感兴趣的还是这个，由于互联网的发展Web技术发展是最快的，衍生出了各种各样的技术，所需技术栈也是较多的，包含操作系统，数据库，计网，服务器，中间件等等，而我是一个喜欢挑战的人，不断刷新技术认知会给到更多的正反馈，并且做web接触到计算机网络和数据库的底层知识会更多，之前做的大部分工作是用上层去构建上层，而深入接触了后端可以更深刻的了解底层是如何构建上层的，新领域新想法总会让人惊喜。</p>
<p>目前的我还有很多不足，因为的确走了很多弯路，后端方面的知识面还不够广而深，我希望之后依旧能保持对技术的热情，深耕在这个领域中不断接受新的挑战！</p>
<p>所以如果你现在处于路线迷茫期，那就什么都不管先做个东西入个门。</p>
<p>如果处于上升期，那就不断深入技术本质。</p>
<h3 id="最后"><a href="#最后" class="headerlink" title="最后"></a>最后</h3><p>非常感谢在大学生涯中遇到的老师和同学，在春招过程中认识的伙伴和大佬们~</p>
<p>最后送给自己一句话</p>
<blockquote>
<p>保持谦卑 勇于挑战</p>
</blockquote>

      
    </div>
    
    
    

    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div>觉得好的话就打赏Ta一瓶冰阔落吧</div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>打赏</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="/images/wechatpay.jpg" alt="Yu 微信支付">
        <p>微信支付</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="/images/alipay.jpg" alt="Yu 支付宝">
        <p>支付宝</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    
      <div>
        <ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者：</strong>
    Yu
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="https://yujunjiex.gitee.io/2020/03/25/春招有感/" title="春招有感">https://yujunjiex.gitee.io/2020/03/25/春招有感/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>
    本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/" rel="external nofollow" target="_blank">CC BY-NC-SA 3.0</a> 许可协议。转载请注明出处！
  </li>
</ul>

      </div>
    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/杂谈/" rel="tag"># 杂谈</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2020/01/15/Python中的设计模式——单例模式/" rel="next" title="Python中的设计模式——单例模式">
                <i class="fa fa-chevron-left"></i> Python中的设计模式——单例模式
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2021/03/17/操作系统导论-进程篇/" rel="prev" title="操作系统导论(进程篇)">
                操作系统导论(进程篇) <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
        <!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_inline_share_toolbox">
  <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5b03d4a278f58ab9" async="async"></script>
</div>

      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
    </div>
  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/images/xiaomai.png" alt="Yu">
            
              <p class="site-author-name" itemprop="name">Yu</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">28</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">30</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/yujunjiex" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#前言"><span class="nav-number">1.</span> <span class="nav-text">前言</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#面经"><span class="nav-number">2.</span> <span class="nav-text">面经</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#笔试略（主要考察基础和算法）"><span class="nav-number">2.1.</span> <span class="nav-text">笔试略（主要考察基础和算法）</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#一面（基础面）"><span class="nav-number">2.2.</span> <span class="nav-text">一面（基础面）</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#二面（项目-场景面）"><span class="nav-number">2.3.</span> <span class="nav-text">二面（项目/场景面）</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#HR面略"><span class="nav-number">2.4.</span> <span class="nav-text">HR面略</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#春招有感"><span class="nav-number">3.</span> <span class="nav-text">春招有感</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#我在大学的日子"><span class="nav-number">4.</span> <span class="nav-text">我在大学的日子</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#最后"><span class="nav-number">5.</span> <span class="nav-text">最后</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; 2018 &mdash; <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-heartbeat"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Yu</span>

  
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    
      <span class="post-meta-item-text">Site words total count&#58;</span>
    
    <span title="Site words total count">46.7k</span>
  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a></div>



        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>

<script type="text/javascript" src="/custom/fold_action.js?v="></script>





  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  










  <script src="//code.bdstatic.com/npm/leancloud-storage@4.12.0/dist/av-min.js"></script>
  <script src="//unpkg.com/valine/dist/Valine.min.js"></script>
  
  <script type="text/javascript">
    var GUEST = ['nick','mail','link'];
    var guest = 'nick';
    guest = guest.split(',').filter(item=>{
      return GUEST.indexOf(item)>-1;
    });
    new Valine({
        el: '#comments' ,
        verify: false,
        notify: false,
        appId: 'rg0EMRYKYKMhOh1zwqEKS5jz-gzGzoHsz',
        appKey: 'T04zQc0OzQd1uxOqcVomoGqj',
        placeholder: '(= =)~*只有10086嘘寒问暖',
        avatar:'mm',
        guest_info:guest,
        pageSize:'5' || 10,
    });
  </script>



  

  <script type="text/javascript">
    // Popup Window;
    var isfetched = false;
    var isXml = true;
    // Search DB path;
    var search_path = "";
    if (search_path.length === 0) {
      search_path = "search.xml";
    } else if (/json$/i.test(search_path)) {
      isXml = false;
    }
    var path = "/" + search_path;
    // monitor main search box;

    var onPopupClose = function (e) {
      $('.popup').hide();
      $('#local-search-input').val('');
      $('.search-result-list').remove();
      $('#no-result').remove();
      $(".local-search-pop-overlay").remove();
      $('body').css('overflow', '');
    }

    function proceedsearch() {
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
        .css('overflow', 'hidden');
      $('.search-popup-overlay').click(onPopupClose);
      $('.popup').toggle();
      var $localSearchInput = $('#local-search-input');
      $localSearchInput.attr("autocapitalize", "none");
      $localSearchInput.attr("autocorrect", "off");
      $localSearchInput.focus();
    }

    // search function;
    var searchFunc = function(path, search_id, content_id) {
      'use strict';

      // start loading animation
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay">' +
          '<div id="search-loading-icon">' +
          '<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>' +
          '</div>' +
          '</div>')
        .css('overflow', 'hidden');
      $("#search-loading-icon").css('margin', '20% auto 0 auto').css('text-align', 'center');

      $.ajax({
        url: path,
        dataType: isXml ? "xml" : "json",
        async: true,
        success: function(res) {
          // get the contents from search data
          isfetched = true;
          $('.popup').detach().appendTo('.header-inner');
          var datas = isXml ? $("entry", res).map(function() {
            return {
              title: $("title", this).text(),
              content: $("content",this).text(),
              url: $("url" , this).text()
            };
          }).get() : res;
          var input = document.getElementById(search_id);
          var resultContent = document.getElementById(content_id);
          var inputEventFunction = function() {
            var searchText = input.value.trim().toLowerCase();
            var keywords = searchText.split(/[\s\-]+/);
            if (keywords.length > 1) {
              keywords.push(searchText);
            }
            var resultItems = [];
            if (searchText.length > 0) {
              // perform local searching
              datas.forEach(function(data) {
                var isMatch = false;
                var hitCount = 0;
                var searchTextCount = 0;
                var title = data.title.trim();
                var titleInLowerCase = title.toLowerCase();
                var content = data.content.trim().replace(/<[^>]+>/g,"");
                var contentInLowerCase = content.toLowerCase();
                var articleUrl = decodeURIComponent(data.url);
                var indexOfTitle = [];
                var indexOfContent = [];
                // only match articles with not empty titles
                if(title != '') {
                  keywords.forEach(function(keyword) {
                    function getIndexByWord(word, text, caseSensitive) {
                      var wordLen = word.length;
                      if (wordLen === 0) {
                        return [];
                      }
                      var startPosition = 0, position = [], index = [];
                      if (!caseSensitive) {
                        text = text.toLowerCase();
                        word = word.toLowerCase();
                      }
                      while ((position = text.indexOf(word, startPosition)) > -1) {
                        index.push({position: position, word: word});
                        startPosition = position + wordLen;
                      }
                      return index;
                    }

                    indexOfTitle = indexOfTitle.concat(getIndexByWord(keyword, titleInLowerCase, false));
                    indexOfContent = indexOfContent.concat(getIndexByWord(keyword, contentInLowerCase, false));
                  });
                  if (indexOfTitle.length > 0 || indexOfContent.length > 0) {
                    isMatch = true;
                    hitCount = indexOfTitle.length + indexOfContent.length;
                  }
                }

                // show search results

                if (isMatch) {
                  // sort index by position of keyword

                  [indexOfTitle, indexOfContent].forEach(function (index) {
                    index.sort(function (itemLeft, itemRight) {
                      if (itemRight.position !== itemLeft.position) {
                        return itemRight.position - itemLeft.position;
                      } else {
                        return itemLeft.word.length - itemRight.word.length;
                      }
                    });
                  });

                  // merge hits into slices

                  function mergeIntoSlice(text, start, end, index) {
                    var item = index[index.length - 1];
                    var position = item.position;
                    var word = item.word;
                    var hits = [];
                    var searchTextCountInSlice = 0;
                    while (position + word.length <= end && index.length != 0) {
                      if (word === searchText) {
                        searchTextCountInSlice++;
                      }
                      hits.push({position: position, length: word.length});
                      var wordEnd = position + word.length;

                      // move to next position of hit

                      index.pop();
                      while (index.length != 0) {
                        item = index[index.length - 1];
                        position = item.position;
                        word = item.word;
                        if (wordEnd > position) {
                          index.pop();
                        } else {
                          break;
                        }
                      }
                    }
                    searchTextCount += searchTextCountInSlice;
                    return {
                      hits: hits,
                      start: start,
                      end: end,
                      searchTextCount: searchTextCountInSlice
                    };
                  }

                  var slicesOfTitle = [];
                  if (indexOfTitle.length != 0) {
                    slicesOfTitle.push(mergeIntoSlice(title, 0, title.length, indexOfTitle));
                  }

                  var slicesOfContent = [];
                  while (indexOfContent.length != 0) {
                    var item = indexOfContent[indexOfContent.length - 1];
                    var position = item.position;
                    var word = item.word;
                    // cut out 100 characters
                    var start = position - 20;
                    var end = position + 80;
                    if(start < 0){
                      start = 0;
                    }
                    if (end < position + word.length) {
                      end = position + word.length;
                    }
                    if(end > content.length){
                      end = content.length;
                    }
                    slicesOfContent.push(mergeIntoSlice(content, start, end, indexOfContent));
                  }

                  // sort slices in content by search text's count and hits' count

                  slicesOfContent.sort(function (sliceLeft, sliceRight) {
                    if (sliceLeft.searchTextCount !== sliceRight.searchTextCount) {
                      return sliceRight.searchTextCount - sliceLeft.searchTextCount;
                    } else if (sliceLeft.hits.length !== sliceRight.hits.length) {
                      return sliceRight.hits.length - sliceLeft.hits.length;
                    } else {
                      return sliceLeft.start - sliceRight.start;
                    }
                  });

                  // select top N slices in content

                  var upperBound = parseInt('1');
                  if (upperBound >= 0) {
                    slicesOfContent = slicesOfContent.slice(0, upperBound);
                  }

                  // highlight title and content

                  function highlightKeyword(text, slice) {
                    var result = '';
                    var prevEnd = slice.start;
                    slice.hits.forEach(function (hit) {
                      result += text.substring(prevEnd, hit.position);
                      var end = hit.position + hit.length;
                      result += '<b class="search-keyword">' + text.substring(hit.position, end) + '</b>';
                      prevEnd = end;
                    });
                    result += text.substring(prevEnd, slice.end);
                    return result;
                  }

                  var resultItem = '';

                  if (slicesOfTitle.length != 0) {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + highlightKeyword(title, slicesOfTitle[0]) + "</a>";
                  } else {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + title + "</a>";
                  }

                  slicesOfContent.forEach(function (slice) {
                    resultItem += "<a href='" + articleUrl + "'>" +
                      "<p class=\"search-result\">" + highlightKeyword(content, slice) +
                      "...</p>" + "</a>";
                  });

                  resultItem += "</li>";
                  resultItems.push({
                    item: resultItem,
                    searchTextCount: searchTextCount,
                    hitCount: hitCount,
                    id: resultItems.length
                  });
                }
              })
            };
            if (keywords.length === 1 && keywords[0] === "") {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>'
            } else if (resultItems.length === 0) {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>'
            } else {
              resultItems.sort(function (resultLeft, resultRight) {
                if (resultLeft.searchTextCount !== resultRight.searchTextCount) {
                  return resultRight.searchTextCount - resultLeft.searchTextCount;
                } else if (resultLeft.hitCount !== resultRight.hitCount) {
                  return resultRight.hitCount - resultLeft.hitCount;
                } else {
                  return resultRight.id - resultLeft.id;
                }
              });
              var searchResultList = '<ul class=\"search-result-list\">';
              resultItems.forEach(function (result) {
                searchResultList += result.item;
              })
              searchResultList += "</ul>";
              resultContent.innerHTML = searchResultList;
            }
          }

          if ('auto' === 'auto') {
            input.addEventListener('input', inputEventFunction);
          } else {
            $('.search-icon').click(inputEventFunction);
            input.addEventListener('keypress', function (event) {
              if (event.keyCode === 13) {
                inputEventFunction();
              }
            });
          }

          // remove loading animation
          $(".local-search-pop-overlay").remove();
          $('body').css('overflow', '');

          proceedsearch();
        }
      });
    }

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched === false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };
    });

    $('.popup-btn-close').click(onPopupClose);
    $('.popup').click(function(e){
      e.stopPropagation();
    });
    $(document).on('keyup', function (event) {
      var shouldDismissSearchPopup = event.which === 27 &&
        $('.search-popup').is(':visible');
      if (shouldDismissSearchPopup) {
        onPopupClose();
      }
    });
  </script>





  


  

  

  
  

  

  

  


</body>
</html>

